import service from '@/utils/request'

const WaterFloodApi = {
  // ---------------安全设备----------------
  addWaterFlood: function (data) {
    return service.post('waterFlood', data)
  },
  deleteWaterFlood: function (data) {
    return service.put('waterFlood/delete', data)
  },
  editWaterFlood: function (data) {
    return service.put('waterFlood', data)
  },
  listWaterFlood: function (data) {
    return service.get('waterFlood/page', {params: data })
  },
  getWaterFloodInfo: function (data) {
    return service.get('waterFlood', {params: data })
  },
}

export default WaterFloodApi
